import koaRouter from "koa-router";
import BusinessCardUserController from "../controller/BusinessCardUserController";

const businessCardUserRouter = new koaRouter();

businessCardUserRouter.prefix("/businessCardUser");

// 获取笔记列表
businessCardUserRouter.get("/page", BusinessCardUserController.getBusinessCardUserList);
// 新增笔记
businessCardUserRouter.post("/add", BusinessCardUserController.addBusinessCardUser);
// 编辑笔记
businessCardUserRouter.put("/edit", BusinessCardUserController.editBusinessCardUser);
// 删除笔记
businessCardUserRouter.delete("/delete/:id", BusinessCardUserController.deleteBusinessCardUser);

export default businessCardUserRouter;